package cn.buk.api.shdl.dto;

import com.fasterxml.jackson.annotation.JsonAlias;

/**
 * @author yfdai
 */
public class FareInfo {
  /**
   * 运价唯一编号
   */
  private int id;
  /**
   * 航空公司
   */
  private String carrier;
  /**
   * 始发地
   * 不可为空，运价的始发地，在
   * 通过ruleRef1 和ruleRef2 调
   * 用规则接口查询规则文本时，
   * 需要使用此处的fare origin，
   * 而不是请求的行程的origin
   */
  private String origin;
  /**
   * 目的地
   */
  private String destination;
  /**
   * 运价基础
   * 不可为空，运价基础，在通过
   * ruleRef1 和ruleRef2 调用规
   * 则接口查询规则文本时，需要
   * 使用此处的fbc
   */
  private String fbc;
  /**
   * 是否为私有运价
   */
  @JsonAlias("private")
  private boolean isPrivate;
  /**
   * 运价类型
   */
  private String fareTypeCode;
  private String globalIndicator;

  private String oAddonOrigin;
  private String oAddonDestination;

  private String dAddonOrigin;
  private String dAddonDestination;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getCarrier() {
    return carrier;
  }

  public void setCarrier(String carrier) {
    this.carrier = carrier;
  }

  public String getOrigin() {
    return origin;
  }

  public void setOrigin(String origin) {
    this.origin = origin;
  }

  public String getDestination() {
    return destination;
  }

  public void setDestination(String destination) {
    this.destination = destination;
  }

  public String getFbc() {
    return fbc;
  }

  public void setFbc(String fbc) {
    this.fbc = fbc;
  }

  public boolean isPrivate() {
    return isPrivate;
  }

  public void setPrivate(boolean aPrivate) {
    isPrivate = aPrivate;
  }

  public String getFareTypeCode() {
    return fareTypeCode;
  }

  public void setFareTypeCode(String fareTypeCode) {
    this.fareTypeCode = fareTypeCode;
  }

  public String getGlobalIndicator() {
    return globalIndicator;
  }

  public void setGlobalIndicator(String globalIndicator) {
    this.globalIndicator = globalIndicator;
  }

  public String getoAddonDestination() {
    return oAddonDestination;
  }

  public void setoAddonDestination(String oAddonDestination) {
    this.oAddonDestination = oAddonDestination;
  }

  public String getoAddonOrigin() {
    return oAddonOrigin;
  }

  public void setoAddonOrigin(String oAddonOrigin) {
    this.oAddonOrigin = oAddonOrigin;
  }

  public String getdAddonOrigin() {
    return dAddonOrigin;
  }

  public void setdAddonOrigin(String dAddonOrigin) {
    this.dAddonOrigin = dAddonOrigin;
  }

  public String getdAddonDestination() {
    return dAddonDestination;
  }

  public void setdAddonDestination(String dAddonDestination) {
    this.dAddonDestination = dAddonDestination;
  }

//  "id": 0,
//          "carrier": "HX ",
//          "origin": "SHA",
//          "destination": "HKG",
//          "fbc": "NAVZ1CN ",
//          "private": true,
//          "fareTypeCode": "ER ",
//          "globalIndicator": "EH"
}
